package com.springsecurity.data.repositories;

import com.springsecurity.data.domains.Attribute;
import java.util.List;
import org.springframework.data.repository.CrudRepository;

/**
 *
 * @author Evgeny Obednin
 */
public interface AttributeRepository extends CrudRepository<Attribute, 
        Integer> {
    
    public List<Attribute> findByAttributeTypeId(Integer attributeTypeId);
    
    public List<Attribute> findByDescriptionLike(String description);
    
    public List<Attribute> findByName(String name);
    
    public List<Attribute> findByNameLike(String name);
    
}
